package com.yipao.db.dao;

import org.apache.ibatis.annotations.Param;
import com.yipao.db.domain.YipaoCollect;
import com.yipao.db.domain.YipaoCollectExample;

import java.util.List;

public interface CollectMapper {
    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    long countByExample(YipaoCollectExample example);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int deleteByExample(YipaoCollectExample example);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int deleteByPrimaryKey(Integer id);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int insert(YipaoCollect record);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int insertSelective(YipaoCollect record);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    YipaoCollect selectOneByExample(YipaoCollectExample example);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    YipaoCollect selectOneByExampleSelective(@Param("example") YipaoCollectExample example, @Param("selective") YipaoCollect.Column... selective);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    List<YipaoCollect> selectByExampleSelective(@Param("example") YipaoCollectExample example, @Param("selective") YipaoCollect.Column... selective);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    List<YipaoCollect> selectByExample(YipaoCollectExample example);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    YipaoCollect selectByPrimaryKeySelective(@Param("id") Integer id, @Param("selective") YipaoCollect.Column... selective);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    YipaoCollect selectByPrimaryKey(Integer id);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    YipaoCollect selectByPrimaryKeyWithLogicalDelete(@Param("id") Integer id, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int updateByExampleSelective(@Param("record") YipaoCollect record, @Param("example") YipaoCollectExample example);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int updateByExample(@Param("record") YipaoCollect record, @Param("example") YipaoCollectExample example);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int updateByPrimaryKeySelective(YipaoCollect record);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int updateByPrimaryKey(YipaoCollect record);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int logicalDeleteByExample(@Param("example") YipaoCollectExample example);

    /**
     
     * This method corresponds to the database table yipao_collect
     *
     * @mbg.generated
     */
    int logicalDeleteByPrimaryKey(Integer id);
}
